package com.kt.mes.service;

import java.util.List;
import com.kt.mes.domain.StockBin;
import com.kt.mes.domain.ToMes;

/**
 * 料仓Service接口
 * 
 * @author lzc
 * @date 2021-01-26
 */
public interface IStockBinService 
{
    /**
     * 查询料仓
     * 
     * @param id 料仓ID
     * @return 料仓
     */
    public StockBin selectStockBinById(Long id);

    public StockBin  selectStockBinBySbId(String sbId);

    /**
     * 查询料仓列表
     * 
     * @param stockBin 料仓
     * @return 料仓集合
     */
    public List<StockBin> selectStockBinList(StockBin stockBin);

    /**
     * 新增料仓
     * 
     * @param stockBin 料仓
     * @return 结果
     */
    public int insertStockBin(StockBin stockBin);

    /**
     * 修改料仓
     * 
     * @param stockBin 料仓
     * @return 结果
     */
    public int updateStockBin(StockBin stockBin);

    /**
     * 批量删除料仓
     * 
     * @param ids 需要删除的料仓ID
     * @return 结果
     */
    public int deleteStockBinByIds(Long[] ids);

    /**
     * 删除料仓信息
     * 
     * @param id 料仓ID
     * @return 结果
     */
    public int deleteStockBinById(Long id);

    void outStockBinByWpi(ToMes toMes);
}
